import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import service.AirlineReservationServiceProxy;
import bean.Traveler;
import constants.AirlineReservationServiceConstants;


public class GetCustomerDetailsServlet extends HttpServlet{
	
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
	throws ServletException, IOException {


			AirlineReservationServiceProxy proxy = new AirlineReservationServiceProxy(
					AirlineReservationServiceConstants.SERVICE_URL);
			Traveler traveler = proxy.getTravelerDetails(Long.parseLong(req.getParameter("id")));
			
			
				
			req.setAttribute("customer", traveler);
			req.getRequestDispatcher("editCustomer.jsp").forward(req, resp);
				
				
				

		}


}
